package com.swpu.service_food.mapper;

import com.swpu.service_food.entity.FoodRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.swpu.service_food.entity.vo.FoodRecordVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chaichai
 * @since 2024-01-27
 */
@Mapper
public interface FoodRecordMapper extends BaseMapper<FoodRecord> {
    List<FoodRecordVo> getFoodRecordByType(Integer dietType, String openid, LocalDateTime startTime,LocalDateTime endTime);
    List<FoodRecordVo> getFoodRecordByDate(String openid, Date startTime, Date endTime);

}
